
//
//  LYDropButton.m
//  SelectCity
//
//  Created by liuyan on 2019/3/21.
//  Copyright © 2019年 liuyan. All rights reserved.
//

#import "LYDropButton.h"

@implementation LYDropButton

- (void)layoutSubviews{
    [super layoutSubviews];

    CGRect titleLabelFrame = self.titleLabel.frame;
     CGRect imageViewFrame = self.imageView.frame;
    
    titleLabelFrame.origin.x = (self.frame.size.width - titleLabelFrame.size.width - imageViewFrame.size.width)/2;
    self.titleLabel.frame = titleLabelFrame;
   
    imageViewFrame.origin.x = titleLabelFrame.size.width+titleLabelFrame.origin.x;
    self.imageView.frame = imageViewFrame;
}
@end
